# -*- coding:utf-8 -*-

__author__ = 'dong'

# import re
from bs4 import BeautifulSoup

# 发布成功
# with open('b.html', 'r') as fd:
#     c = fd.read()
#     print re.findall(r'<h1 class="h">(.+?)</h1>', c)[0]
#     print type(re.findall(r'<h1 class="h">(.+?)</h1>', c)[0])

soup = BeautifulSoup(open('b.html'), 'html.parser')
c = soup.find_all('h1')[0].string
if c == u'信息发布成功！':
    print '--'
else:
    print '=='


# 提示信息
# 验证码输入错误，请返回重新输入
# soup = BeautifulSoup(open('a.html'), 'html.parser')
# print soup.find_all('div', class_="tip-top")[0].string
# print soup.span.string
